public class NpcWait : NpcAction
{
    public float Time = 0.1f;
    private float _time;
    protected override void OnEnter()
    {
        base.OnEnter();
        _time = Time;
    }
    protected override void OnUpdate(float deltaTime, float progress)
    {
        base.OnUpdate(deltaTime, progress);
        _time -= deltaTime;
        if (_time <= 0f)
        {
            this.Finished = true;
        }
    }
}